<%--
  Created by IntelliJ IDEA.
  User: wangw
  Date: 2025/4/10
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>login</title>
  </head>
  <body>
  <h2>欢迎用户登录</h2>
    <form action="login" method="post">
      密码：<input type="password" name="pwd"/><br>
      账号：<input type="text" name="username"/><br>
      <font color="red">
        <%if(request != null && request.getAttribute("loginError") != null){%>
          <%=request.getAttribute("loginError")%>
        <%}%>
      </font>
      <input type="submit" name="登录"/>
    </form>
  </body>
</html>
